package edu.biwu.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    private  Integer id;

    private String name;

    private double price;

    private String detail;

    private String pic;

    private LocalDateTime createtime;

    public Product( String name, double price, String detail, String pic, LocalDateTime createtime) {
        this.name = name;
        this.price = price;
        this.detail = detail;
        this.pic = pic;
        this.createtime = createtime;
    }

}
